package com.huaguoguo.spring.annotation;

import java.lang.annotation.*;

/**
 * description: 自动注入注解
 * author:huaguoguo
 * Date: 2018/12/10
 * Time: 21:48
 */
@Target({ElementType.CONSTRUCTOR, ElementType.METHOD, ElementType.PARAMETER, ElementType.FIELD, ElementType.ANNOTATION_TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Autowired {

    /**
     * 是否必须
     */
    boolean required() default true;
}
